package com.xiyu.service.enums.office.unit;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 单位机构规格
*/
@Getter
@AllArgsConstructor
public enum UnitInstitutionalSpecificationsEnum implements IntArrayValuable {

    /**
    * 正厅级
    */
    LEADING_DEPARTMENTS(1, "正厅级"),
    /**
    * 副厅级
    */
    ASSISTING_DEPARTMENTS(2, "副厅级"),
    /**
    * 正局级
    */
    LEADING_ADMINISTRATION(3, "正局级"),
    /**
    * 副局级
    */
    ASSISTING_ADMINISTRATION(4, "副局级"),
    /**
    * 正处级
    */
    LEADING_DIVISIONS(5, "正处级"),
    /**
    * 副处级
    */
    ASSISTING_DIVISIONS(6, "副处级"),
    /**
    * 其他
    */
    OTHER(7, "其他");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(UnitInstitutionalSpecificationsEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(UnitInstitutionalSpecificationsEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
